<div class="recent-activity developer-info1 clearfix">
   <?PHP if(!empty($activities)): ?>
	<h4 class="recent-active">
    <?php echo $this->Html->link(__l('Recent activity'), array('controller' => 'activities', 'action' => 'index', 'ext' => 'rss','id' => $activities[0]['project_info']['id'],'type' => 'project') , array('target' => '_blank','title' => __l('Recent activity')));?>
    </h4>
   <?PHP endif; ?>
    <ul class="activity-list clearfix">
<?php 
if(!empty($activities)){
	foreach ($activities as $activity):    
?>
        <li>
        <?php 
		echo $this->Html->link($this->Html->cText($activity['activity_info']['username']), array('controller' => 'users', 'action' => 'view', $activity['activity_info']['username']), array('escape' => false,'title' => $activity['activity_info']['username']));
		if ($activity['activity_info']['model'] == 'Project'): 
			echo ($activity['activity_info']['action_type'] == 'edit') ? __l('Project edited') : __l('Launched'); 
		elseif ($activity['activity_info']['model'] == 'ProjectFund'):
			echo __l('Pledged'); 
		elseif ($activity['activity_info']['model'] == 'ProjectComment'): 
			echo __l('Commented');
		elseif ($activity['activity_info']['model'] == 'Blog'):
			echo __l('Update posted');
		elseif ($activity['activity_info']['model'] == 'BlogComment'):
			echo __l('Commented on update'); 
		elseif ($activity['activity_info']['model'] == 'ProjectRating'): 
			echo __l('Voted');
        elseif ($activity['activity_info']['model'] == 'ProjectFollower'):
			echo __l('Followed');
		endif; 
?>
        </li>
<?php 
	endforeach;
}
else
{
?>
		<li><p class="notice"><?php echo __l('No activities found'); ?></p></li>
<?php }	?>        
	</ul>
</div>